package com.ply.flashsalessystem.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ply.flashsalessystem.entity.pojo.JionRepositoryDetails;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ply.flashsalessystem.entity.vo.manage.JoinRepositoryDetailsVo;
import com.ply.flashsalessystem.entity.wrapper.JoinRepositoryDetailsWrapper;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author XiaoPan
 * @since 2022-03-23
 */
public interface JionRepositoryDetailsService extends IService<JionRepositoryDetails> {

    /**
     * 分拣详情表
     * <p>
     * 增 查
     */

    /**
     * 商品 入库 详情
     *
     * @param jionRepositoryDetails 必须 有商品 id 入库id
     */
    boolean addJoinRepositoryDetails(JionRepositoryDetails jionRepositoryDetails);

    boolean addJoinRepositoryDetailsMany(Long manageId, List<JionRepositoryDetails> jionRepositoryDetails);


    /**
     * 分页条件查询
     *
     * @param current                      当前页
     * @param limit                        每页的个数
     * @param joinRepositoryDetailsWrapper 条件
     */
    Page<JoinRepositoryDetailsVo> queryJoinRepositoryDetails(Integer current,
                                                             Integer limit,
                                                             JoinRepositoryDetailsWrapper joinRepositoryDetailsWrapper);


}
